﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using LibFriesland_Campina_CRM;

namespace WebServiceFriesland_Campina_CRM
{
    /// <summary>
    /// Summary description for FCPriceAuditWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FCPriceAuditWS : System.Web.Services.WebService
    {
        [WebMethod]
        public int updateProductPriceInShopDiary(string pBy_shop, string pBy_product, string pDatetime, decimal pPrice)
        {
            //BizProductInShopDiary newPrice = new BizProductInShopDiary( pBy_shop, pBy_product, pDatetime, pPrice);
            return BizProductInShopDiary.updateProductPriceInShopDiary(pBy_shop, pBy_product, Convert.ToDateTime(Thuvien.myConvertStringToShortDate(pDatetime)), pPrice);
        }
    }
}
